#ifndef __FastDB_h__
#define __FastDB_h__

#include "Types.h"

class FastDB
{
private:
	FastDB(const FastDB&);
	FastDB& operator=(const FastDB&);
public:
	FastDB(const char * storagePath);
	~FastDB();

	bool CreateFile(sFileRecord & sFile);

	SizeType ReadFile(const sFileRecord & sFile, void * out, SizeType nbytes, SizeType offset) const;
	SizeType WriteFile(const sFileRecord & sFile, const void * what, SizeType nbytes, SizeType offset);
	SizeType AppendFile(sFileRecord & sFile, const void * what, SizeType nbytes);
};

#endif

